printf(', %s', flags);
printf('%10d Pkts.\n', bitrate.packets);
}
- printf(`\texpected throughput: ${station.expected_throughput}\n\n`);
+ let expected_throughput = station.expected_throughput;
+ printf(`\texpected throughput: ${expected_throughput == 'unknown' ? 'unknown' : expected_throughput + ' MBit/s'}\n\n`);
}
}
return rate ? sprintf('%.01f', rate / 10.0) : 'unknown';
}
+function format_expected_throughput(rate) {
+ return rate ? sprintf('%.01f', rate / 1000.0) : 'unknown';
+}
+
function format_mgmt_key(key) {
switch(+key) {
case 1:
packets: station.sta_info.tx_packets ?? 0,
flags: assoc_flags(station.sta_info.tx_bitrate ?? {}),
},
- expected_throughput: station.sta_info.expected_throughput ?? 'unknown',
+ expected_throughput: format_expected_throughput(station.sta_info.expected_throughput ?? 0),
};
ret[sta.mac] = sta;
}